package com.wechat.shopping.mall.account.domain;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 新建微信用户参数
 */
public class SaveWechatUserParam{

    /**
     * 用户名
     */
    @NotBlank
    private String userName;

    /**
     * 用户电话
     */
    @NotBlank
    private String userPhone;

    /**
     * 密码
     */
    @NotBlank
    private String password;

    /**
     * 生日
     */
    @NotNull
    private Date birthday;

    /**
     * 性别
     */
    @NotNull
    private Byte sex;

    /**
     * 身份识别ID
     */
    @NotNull
    private String openId;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }
}
